/**
 * Creates log, one of each level, and then calls another object.
 * 
 * See <a href="http://www.vogella.com/articles/Logging/article.html">
 * Java Logging API - Tutorial</a>
 * 
 * @author Andrew Bell
 * 
 */
package com.recursivechaos.examples.log4j;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class HelloLogger {
 	static Logger logger = Logger.getLogger(HelloLogger.class);
 
	public static void main(String[] args) {
		PropertyConfigurator.configure("config/log4j.properties");
		logger.debug("Sample debug message");
		logger.info("Sample info message");
		logger.warn("Sample warn message");
		logger.error("Sample error message");
		logger.fatal("Sample fatal message");
		SampleReport obj = new SampleReport();
		obj.generateReport();
	}
}